import os

a = Analysis(
    [os.path.join(HOMEPATH,'support\\_mountzlib.py')
        , os.path.join(HOMEPATH,'support\\useUnicode.py')
        , os.path.normpath(os.path.join(currentDir, 'main.py'))
        , os.path.normpath(os.path.join(currentDir, 'importantLib.py'))
     # add the files you want PyInstaller to analyse the "import" statements
     # to detect the libraries to include
    ],
    pathex=['C:\\Python27\\pyinstaller-1.5.1']
)
pyz = PYZ(a.pure)
exe = EXE(pyz,
    a.scripts,
    exclude_binaries=1,
    name=os.path.join('build\\pyi.win32\\build_output', 'your_application.exe'),
    debug=False,
    strip=False,
    upx=True,
    console=False )
coll = COLLECT( exe,
    a.binaries,
    a.zipfiles,
    a.datas,
    strip=False,
    upx=True,
    name=os.path.join('dist', 'dist_output'))